class CreateResources < ActiveRecord::Migration
  def self.up
    create_table :resources do |t|
      t.column  :quote_id,        :integer
      t.column  :order_id,        :integer
      t.column  :employee_id,     :integer
      t.column  :created_on,      :timestamp
      t.column  :updated_on,      :timestamp
      t.column  :lock_version,    :integer, :default => 0
      t.column  :type,            :string
    end
  end
  
  def self.down
    drop_table :resources
  end
end
